﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace centraldba_library.Admin
{
    public class target_server : INotifyPropertyChanged
    {
        private string _server_name;
        Int32 _server_id, _server_group_id;
        DateTime _enlist_date, _last_poll_date;

        #region " Events "

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #endregion

        #region " Properties "

        public string server_name
        {
            get { return this._server_name; }
            set
            {
                if (this._server_name != value)
                {
                    this._server_name = value;
                    NotifyPropertyChanged("server_name");
                }
            }
        }

        public Int32 server_id
        {
            get { return this._server_id; }
            set
            {
                if (this._server_id != value)
                {
                    this._server_id = value;
                    NotifyPropertyChanged("server_id");
                }
            }
        }

        public DateTime enlist_date
        {
            get { return this._enlist_date; }
            set
            {
                if (this._enlist_date != value)
                {
                    this._enlist_date = value;
                    NotifyPropertyChanged("enlist_date");
                }
            }
        }

        public DateTime last_poll_date
        {
            get { return this._last_poll_date; }
            set
            {
                if (this._last_poll_date != value)
                {
                    this._last_poll_date = value;
                    NotifyPropertyChanged("last_poll_date");
                }
            }
        }

        public Int32 server_group_id
        {
            get { return this._server_group_id; }
            set
            {
                if (this._server_group_id != value)
                {
                    this._server_group_id = value;
                    NotifyPropertyChanged("server_group_id");
                }
            }
        }

        #endregion
    }
}
